package com.hengpeng.itfin.persist;

import com.hengpeng.common.persist.NestedSimplyDao;
import com.hengpeng.common.persist.entity.AbstractEntity.BoolValue;
import com.hengpeng.itfinbase.persist.UserInfo;

/**
 * 会员信息dao接口
 * 
 * @author zhaojitao
 */
public interface UserInfoDao extends NestedSimplyDao<UserInfo> {
    public UserInfo getUserByUserName(String userName);

    public UserInfo getUserByTrustAccountId(String trustAccountId);

    public UserInfo getUserByBusiCode(String busiCode);

    public UserInfo getUserByMobile(String mobile);

    public UserInfo getUserByUserNameEmailMobile(String s);

    public UserInfo getUserByRecommandCode(String recommandCode);

    public int updateUserInfo(String cardNumber, String trustAccountId, String mobile, String email, String realName,
            BoolValue newIsOpenAccount, Long id, BoolValue oldIsOpenAccount);
}
